package marcel.media.video.youtube.events {
	import flash.events.Event;

	/**
	 * @author Nicolas CHESNE
	 */
	public class YTEvent extends Event {
		
		public static const READY:String = "onReady";
		public static const ERROR:String = "onError";
		public static const STATE_CHANGE:String = "onStateChange";
		public static const QUALITY_CHANGE:String = "onPlaybackQualityChange";
		
		private var _data:*;
		
		public function YTEvent(type:String, data:*) {
			super(type, true, false);
			_data = data;
		}

		public function get data():* {
			return _data;
		}
	}
}
